package or.exa.cangguan.mapper;

import or.exa.cangguan.entity.po.Goods;
import or.exa.cangguan.entity.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer goodsId);
     Integer selectIdByName(String goodsName);

    int insert(Goods record);

    List<Goods> selectByName(List<GoodsVo> goodsList);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer goodsId);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
}